import { FlowEditor, ToolBar, ContextMenu, G6Utils } from '@/components/FlowEditor';
const components = [
  FlowEditor,
  ToolBar,
  ContextMenu
];

const install = function(Vue) {
  if (install.installed) return;
  components.map(component => Vue.component(component.name, component));
};

if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue);
}

export {
  install,
  FlowEditor,
  ToolBar,
  ContextMenu,
  G6Utils
};
export default {
  install,
  FlowEditor,
  ToolBar,
  ContextMenu,
  G6Utils
};

